<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html
        PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core" xmlns:rich="http://richfaces.org/rich"
      xmlns:a4j="http://richfaces.org/a4j">
<body>
<ui:composition
        template="/common/template.xhtml">
    <ui:define name="title">Источник описаний</ui:define>
    <ui:define name="body">
    <h:outputLabel value="Источник: "/>
    <h:outputText value="#{sourceDetailsBean.sourceName}" style="color:chocolate;"/>
        <h:form id="sourceDetailsForm">
        <rich:toolBar>
        <h:commandLink id="addFileLink" value="Добавить файл" action="addFile">
        <f:param id="sourceNameParam" name="sourceName" value="#{sourceDetailsBean.sourceName}"/>
        <f:param id="sourceUriParam" name="sourceUri" value="#{sourceDetailsBean.sourceUri}"/>
        </h:commandLink>
        <h:commandLink id="returnToSource" value="Вернуться к списку источников" action="viewSources"/>
        </rich:toolBar>
        </h:form>
            <rich:dataTable id="descriptionFiles"
                            value="#{sourceDetailsBean.descriptionFiles}"
                            var="descriptionFile">
                            <f:facet name="header">
                        <h:outputText value="Файлы с описаниями"/>
                    </f:facet>
                <rich:column>
                    <f:facet name="header">
                        <h:outputText value="Имя"/>
                    </f:facet>
                    <h:outputText value="#{descriptionFile.name}"/>
                </rich:column>
            </rich:dataTable>
        
    </ui:define></ui:composition>
</body>
</html>